package com.gxa.core.recycling.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @author ：looker
 * @date ：Created in 2021/12/1 16:16
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
/*@Table(name = "banner")
@Entity   //orm对象关系映射*/
@Document(collection = "picturesList")
public class Banner implements Serializable {


        @Field("id")
        @Id
        @GeneratedValue(strategy = GenerationType.IDENTITY)
        @Column(name = "id")
        private Integer id;
        @Field("title")
        @Column(name = "title")
        private String title;
        @Field("description")
        @Column(name = "description")
        private String description;
        @Field("image")
        @Column(name = "image")
        private String image;
        /*@Field("url")
        @Column(name = "url")
        private String url;
        @Field("created")
        @Column(name = "created")
        private Date created;
        @Field("position")
        @Column(name = "position")
        private String position;
        @Field("hot")
        @Column(name = "hot")
        private Long hot;

        //事先声明一组常量
        //定位在首页
        public static final String POSITION_HOME = "home";
        //定为为家电
        public static final String POSITION_JIADIAN = "jiadian";
        //定为在手机页面
        public static final String POSITION_PHONE = "phone";
        //定为为美妆
        public static final String POSITION_MEIZHUANG = "meizhuang";
*/
}
